#ifndef SETTING_H
#define SETTING_H
#include "config.h"

class Setting
{
public:
    Setting();

    static Setting& Instance();

    int syncMode;

    void save();

public:
    enum SyncMode_e
    {
        SM_SHORT,
        SM_FULL
    };

    /**
     * JSNAME(xxx)'s key
     * @brief The SettingParam enum
     */
    enum SettingParam
    {
        ServerIp,
        IsClient,
        ShowLeft,
        Count
    };

public:
    Config config;
};



#endif // SETTING_H
